home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / icon tools / iconinstaller / install_icons.bak < prev    next >
Text File  |  1996-04-07  |  6KB  |  115 lines

  1. ICONINSTALLER 3.0
  2.  
  3. ;   The first line above is an identifier and has to start with the word
  4. ;
  5. ;   ICONINSTALLER
  6. ;
  7. ;   This way, IconInstaller knows that this file is meant as a script.
  8. ;   An optional version number may be added to guarantee that this script
  9. ;   is not executed on an older version of IconInstaller, that does not
  10. ;   support all commands included in the script.
  11.  
  12. ;   Empty lines and lines starting with a semicolon are ignored,
  13. ;   so that comments may be included, as here.
  14.  
  15. ;   Display greetings message:
  16. ;   Messages are invoked with the MESSAGE command. This will produce an
  17. ;   Intuition requester with the text given in the quotes as the body text
  18. ;   plus a single 'OK' gadget.
  19. ;   The message has to be written all on the same line, sorry, so use
  20. ;   an editor that can handle long lines.
  21. ;   Messages up to some 500 characters long are supported.
  22. ;   '\n' is interpreted as a newline character, to split the text up in
  23. ;   several lines in the requester.
  24.  
  25. MESSAGE "This example script will install new images to your\nPrefs icons, the icons in the 'Prefs/Presets' drawer,\nand your harddisk and ram disk icons.\n\nOnly the imagery of the icons will be changed.\nPosition, default tool, tooltypes, etc. will be kept intact.\nInstallation is made on an icon-by-icon basis."
  26.  
  27. ;   Set the mode of installation - possible arguments are
  28. ;      AUTOMATIC - fully automatic installation
  29. ;      SKIP      - confirm all installations, skip over not found icons.
  30. ;      MANUAL    - confirm everything, even skips.
  31. ;   Default is SKIP.
  32.  
  33. SCRIPTMODE SKIP
  34.  
  35. ;   Offer to install a palette:
  36. ;   The IFNOTNEWICONS keyword means that the command is executed only if
  37. ;   the NewIcons patch is not installed, or if the user has selected to
  38. ;   erase the NewIcon image from the destination icon.
  39. ;   If the SCRIPTMODE is set to AUTOMATIC, the palette is automatically
  40. ;   installed (the IFNOTNEWICON condition is taken into account, of course).
  41. ;   Otherwise, a requester is displayed giving the user the options to
  42. ;   save, use or cancel the new palette.
  43.  
  44. IFNOTNEWICONS INSTALLPALETTE Icons/IGfx_Palette
  45.  
  46. ;   At last, now we come to the real business: the icons themselves.
  47. ;   Source icons are specified with the FROM keyword,
  48. ;   destination icons with the TO keyword.
  49. ;   If the destination icon is not found, it is simply skipped.
  50. ;   The exception is when SCRIPTMODE is set to MANUAL, where the user has
  51. ;   the choice to locate the icon manually (or confirm the skip, of course).
  52.  
  53. FROM Icons/PrefsDrawer  TO SYS:Prefs
  54. FROM Icons/Font         TO SYS:Prefs/Font
  55. FROM Icons/IControl     TO SYS:Prefs/IControl
  56. FROM Icons/Input        TO SYS:Prefs/Input
  57. FROM Icons/Locale       TO SYS:Prefs/Locale
  58. FROM Icons/Overscan     TO SYS:Prefs/Overscan
  59. FROM Icons/Palette      TO SYS:Prefs/Palette
  60. FROM Icons/Pointer      TO SYS:Prefs/Pointer
  61. FROM Icons/Printer      TO SYS:Prefs/Printer
  62. FROM Icons/PrinterGfx   TO SYS:Prefs/PrinterGfx
  63. FROM Icons/PrinterPS    TO SYS:Prefs/PrinterPS
  64. FROM Icons/ScreenMode   TO SYS:Prefs/ScreenMode
  65. FROM Icons/Serial       TO SYS:Prefs/Serial
  66. FROM Icons/Sound        TO SYS:Prefs/Sound
  67. FROM Icons/Time         TO SYS:Prefs/Time
  68. FROM Icons/WBPattern    TO SYS:Prefs/WBPattern
  69. FROM Icons/PresetDrawer TO SYS:Prefs/Presets
  70.  
  71. ;   Installing to the Prefs/Presets drawer:
  72. ;   Note the DIR keyword: This means that the destination is a directory,
  73. ;   not a destination icon. The source is installed to all icons in this
  74. ;   directory.
  75. ;   Note the MATCH keyword: This means that icons in the destination drawer
  76. ;   are compared against the source icon. If the icon types are the same, the
  77. ;   destination icon is accepted for installation. If the types are different,
  78. ;   it is rejected.
  79. ;   Note the TYPE keyword: This explicitely sets the destination icon type
  80. ;   to PROJECT. In combination with the MATCH keyword above, this guarantees
  81. ;   that only PROJECT icons are accepted for installation.
  82.  
  83. FROM Icons/def_preset   TO SYS:Prefs/Presets/ DIR TYPE=PROJECT MATCH
  84.  
  85. ;   Installing the Ram Disk Icon:
  86. ;   Note the FORCE keyword: The destination icon is created, if it did not
  87. ;   exist.
  88. ;   Note the QUIET keyword: This means that if the destination icon is on
  89. ;   a volume or device that does not exist, the Workbench requester
  90. ;   'Please insert volume...' is not displayed and the icon is skipped.
  91. ;   The QUIET keyword overrides the FORCE keyword.
  92. ;   Note the RAM keyword: This will display a requester, offering to append
  93. ;   a small script to the S:User-Startup to make the Ram Disk icon appear
  94. ;   after every reboot. If the SCRIPTMODE (as explained above) is set
  95. ;   to AUTOMATIC, the script is automatically appended to S:User-Startup.
  96.  
  97. FROM Icons/def_ramdisk  TO RAM:Disk QUIET FORCE TYPE=DISK RAM
  98.  
  99. ;   Installing Hard Disk icons:
  100. ;   Using the QUIET keyword, non-existing volumes are conveniently
  101. ;   skipped, even when SCRIPTMODE is set to MANUAL.
  102.  
  103. FROM Icons/def_harddisk TO DH0:Disk QUIET FORCE TYPE=DISK
  104. FROM Icons/def_harddisk TO DH1:Disk QUIET FORCE TYPE=DISK
  105. FROM Icons/def_harddisk TO DH2:Disk QUIET FORCE TYPE=DISK
  106. FROM Icons/def_harddisk TO DH3:Disk QUIET FORCE TYPE=DISK
  107. FROM Icons/def_harddisk TO HD0:Disk QUIET FORCE TYPE=DISK
  108. FROM Icons/def_harddisk TO HD1:Disk QUIET FORCE TYPE=DISK
  109. FROM Icons/def_harddisk TO HD2:Disk QUIET FORCE TYPE=DISK
  110. FROM Icons/def_harddisk TO HD3:Disk QUIET FORCE TYPE=DISK
  111.  
  112. ;   A goodbye message
  113.  
  114. MESSAGE "These example icons are part of the Iconographics icon collection,\nthat contains all standard Workbench icons, ToolManager dock icons,\ncustom drawer icons, and much much more.\nOver 350 icons are included in the collection!\nThese icons look best on a Workbench screen with eight colours or more.\n\nIconographics 2.1 is available on Aminet as 'pix/icon/IGfx21.lha'."
  115.